home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Speccy ClassiX 1998
/
Speccy ClassiX 98.iso
/
amiga_system
/
the_aminet
/
dev
/
gcc
/
ixemulsdk.lha
/
man
/
cat3
/
atoi.0
< prev
next >
Wrap
Text File
|
1992-08-10
|
882b
|
67 lines
ATOI(3) UNIX Programmer's Manual ATOI(3)
NNAAMMEE
aattooii - convert ASCII string to integer
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddlliibb..hh>>
_i_n_t
aattooii(_c_o_n_s_t _c_h_a_r _*_n_p_t_r)
DDEESSCCRRIIPPTTIIOONN
The aattooii() function converts the initial portion of the string pointed to
by _n_p_t_r to _i_n_t_e_g_e_r representation.
It is equivalent to:
(int)strtol(nptr, (char **)NULL, 10);
SSEEEE AALLSSOO
atof(3), atol(3), strtod(3), strtol(3), strtoul(3)
SSTTAANNDDAARRDDSS
The aattooii() function conforms to ANSI C3.159¡1989 (``ANSI C'').
BSD Experimental June 29, 1991 1